/*******************************************************************************
 * Copyright (c) 2011 Gijs de Vries aka Janoz.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Gijs de Vries aka Janoz - initial API and implementation
 ******************************************************************************/
/* COPYRIGHT (C) 2008 Gijs de Vries. All Rights Reserved. */
package com.janoz.httpd;

import java.util.Properties;

/**
 * Interface for handling requests from the PicoHttpd. Content 
 * serving classes should implement this interface.
 * 
 * 
 * @author Gijs de Vries
 */
public interface RequestHandler {
	/**
	 * 
	 * @param uri the uri of the request
	 * @param params the get parameters of the request
	 * @return The generated response that will be sent to the client
	 */
	Response handleRequest(String uri, Properties params);

}
